import request from '@/utils/request'

export function listHouse(query) {
  return request({
    url: '/house/list',
    method: 'get',
    params: query
  })
}

export function createHouse(data) {
  return request({
    url: '/house/add',
    method: 'post',
    data
  })
}

export function updateHouse(data) {
  return request({
    url: '/house/update',
    method: 'post',
    data
  })
}
export function playFlagUpdate(data) {
  return request({
    url: '/house/playFlagUpdate',
    method: 'get',
    data
  })
}
export function houseplay(data) {
  return request({
    url: '/house/houseplay',
    method: 'post',
    data
  })
}

export function deleteHouse(data) {
  return request({
    url: '/house/delete',
    method: 'post',
    data
  })
}
export function houseOptions(query) {
  return request({
    url: '/house/options',
    method: 'get',
    params: query
  })
}
export function roomToHouseOptions(query) {
  return request({
    url: '/house/optionsHouseToHome',
    method: 'get',
    params: query
  })
}
